package cn.lg.soar.general.api.model;

import cn.lg.soar.common.util.data.DataUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2024/6/3 20:41
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class BizFileDTO {

    private String bizType;

    private List<FileVO> fileVos;

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public List<FileVO> getFileVos() {
        return fileVos;
    }

    public void setFileVos(List<FileVO> fileVos) {
        this.fileVos = fileVos;
    }

    public BizFileDTO() {
    }

    public BizFileDTO(String bizType, List<FileVO> fileVos) {
        this.bizType = bizType;
        this.fileVos = fileVos;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {

        private final List<BizFileDTO> list;

        public Builder() {
            list = new ArrayList<>();
        }

        public Builder add(String bizType, List<FileVO> fileVos) {
            list.add(new BizFileDTO(bizType, fileVos));
            return this;
        }

        public List<BizFileDTO> build() {
            return list;
        }
    }

}
